//
//  AdView.h
//  AdImage
//
//  Created by Burn on 2019/7/23.
//  Copyright © 2019 menksoft. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AdImageProtocol.h"
NS_ASSUME_NONNULL_BEGIN

typedef void(^loadImage)(UIImageView *imageView,NSURL *url);
@protocol AdViewDelegate <NSObject>

- (void)clickAdWith:(id<AdImageProtocol>)adModel;

@end

@interface AdView : UIView

@property(weak,nonatomic) id<AdViewDelegate> delegate;

- (instancetype)initWithFrame:(CGRect)frame loadImage:(loadImage)loadIMG;

- (void)setAdWith:(NSArray<AdImageProtocol>*)adModels;
@end

NS_ASSUME_NONNULL_END
